import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Window 2.15
import QtQuick.Layouts 1.15

Window {
    width: 1280
    height: 900
    visible: true
    title: qsTr("VIDEO")
    color: '#121421'
    minimumWidth: 1024
    minimumHeight: 768

    NavigationBar {
        id: navBar
        anchors.left: parent.left
        anchors.top: parent.top
        anchors.bottom: parent.bottom
        width: 226

        onNavButtonClicked: {
            if (buttonId === 'home') {
                pageLoader.source = './PageHome.qml';
            } else {
                pageLoader.source = '';
            }
        }
    }

    TitleBar {
        id: titleBar
        anchors.top: parent.top
        anchors.left: navBar.right
        anchors.right: parent.right
        height: 86
    }

    Loader {
        id: pageLoader
        anchors.top: titleBar.bottom
        anchors.left: navBar.right
        anchors.bottom: parent.bottom
        anchors.right: parent.right
        //source: './PageHome.qml'
    }
}
